package com.bazaaroid.mobile.rest.model.partner;

public class DiscountItem {
	public static String KEY = "key";
	public static String NAME = "name";
	public static String DESC = "description";
	public static String PERCENTAGE = "percentage";
	public static String PRICE_WITH_DISC = "priceWithDiscount";
	public static String TIME_PERIOD = "timePeriod";

	private String key;
	private String name;
	private String description;
	private String percentage;
	private String priceWithDiscount;
	private TimePeriodItem timePeriod;
	public void setKey(String key) {
		if(key.contains("Discount(") && key.contains(")"))
		{
			key = key.replace("Discount(", "");
			key = key.replace(")", "");
		}
		this.key = key;
	}
	public String getKey() {
		return key;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getDescription() {
		return description;
	}
	public void setPercentage(String percentage) {
		this.percentage = percentage;
	}
	public String getPercentage() {
		return percentage;
	}
	public void setPriceWithDiscount(String priceWithDiscount) {
		this.priceWithDiscount = priceWithDiscount;
	}
	public String getPriceWithDiscount() {
		return priceWithDiscount;
	}
	public void setTimePeriod(TimePeriodItem timePeriod) {
		this.timePeriod = timePeriod;
	}
	public TimePeriodItem getTimePeriod() {
		return timePeriod;
	}
}
